package com.hutu.erp.catalog.map;

import com.hutu.erp.catalog.domain.Product;
import com.hutu.erp.catalog.domain.ProductPicture;
import com.hutu.erp.catalog.model.PictureModel;
import com.hutu.erp.catalog.model.ProductModel;
//import org.mapstruct.Mapper;
import com.hutu.erp.catalog.model.ProductPictureModel;
import com.ruoyi.system.domain.Picture;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * Description: com.hutu.erp.catalog.map
 * User: hushibo
 * Date: 2021-05-26 13:18
 * Time: 13:18
 * Version: 1.0
 */
@Mapper(componentModel = "spring")
public interface CatalogMap {
    ProductModel toProductModel(Product product);
    Product toProduct(ProductModel product);

    ProductPictureModel toPictureModel(Picture picture);
    Picture toPicture(ProductPictureModel model);
    ProductPicture toProductPicture(ProductPictureModel model);

}
